﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NHEntity;
using NHBussines;
namespace NHWeb
{
    public partial class Default : BasePage 
    {
        private readonly BussinesFactory bussinessFactory = new FrameworkBussinesFactory();
        protected void Page_Load(object sender, EventArgs e)
        {
            var lstUsers = bussinessFactory.GetUserController().FindAll();
            var service = bussinessFactory.GetUserController();
            var entity = new UserEntity { Login = "MAguilar", Password = "Klabe" };
            service.Save(entity);
        }
    }
}